﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Cube : MonoBehaviour
{
    MeshFilter mesh;
    // Start is called before the first frame update
    void Start()
    {
        mesh = this.GetComponent<MeshFilter>();
        for (int i = 0; i < mesh.mesh.vertices.Length; i++)
        {
            Debug.Log("vertices :" + mesh.mesh.vertices[i] + " UV :" + mesh.mesh.uv[i]);
        }
        //for (int i = 0; i < mesh.mesh.triangles.Length;i++) {
        //    Debug.Log("triangles :" + mesh.mesh.triangles[i]);
        //}
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
